﻿using CDataContext;
using System;

namespace BellAssistant.Model.Tables
{
    public class UserInfo : CDataContext.CEntity
    {
        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_ISPrimary = true, Att_AutoIncrement = true)]
        public int UserID { get; set; }

        /// <summary>
        /// 用户所属权限组ID
        /// </summary>
        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = true)]
        public int GrpID { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_DataLength = 50)]
        public string UserName { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_DataLength = 50)]
        public string LoginName { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_DataLength = 50)]
        public string Password { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = true, Att_DataLength = 50)]
        public string RoleType { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = true)]
        public int CSIUnitID { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_DataLength = 50)]
        public string CreateUser { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false)]
        public DateTime CreateDate { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false, Att_DataLength = 50)]
        public string ModifyUser { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false)]
        public DateTime ModifyDate { get; set; }

        [CDataContext.CAttribute.DataColumnAttirbute(Att_AlowNULL = false)]
        public bool IsValid { get; set; }
    }
}
